package com.gitee.wsl.platform

import kotlin.experimental.ExperimentalNativeApi

actual val process: Process
    get() = defaultProcess


@OptIn(ExperimentalNativeApi::class)
fun CpuArchitecture.asArch(): Arch = when (this) {
    CpuArchitecture.UNKNOWN -> Arch.UNKNOWN
    CpuArchitecture.ARM32 -> Arch.Arm32
    CpuArchitecture.ARM64 -> Arch.Arm64
    CpuArchitecture.X86 -> Arch.X32
    CpuArchitecture.X64 -> Arch.X64
    else -> Arch.UNKNOWN
}
